<template>
  <div>
    <div class="title" align="center">症状模块知识仅供参考,如有需要,请在医生指导下使用</div>
    <div class="disease-container">
      <div class="disease-name">{{ this.disease.diseaseName }}</div>
      <div class="section-title">[病理]:</div>
      <div class="section-content">{{ this.disease.diseasePathology }}</div>
      <div class="section-title">[症状]:</div>
      <div class="section-content">{{ this.disease.diseaseSymptom }}</div>
      <div class="section-title">[宜与忌]:</div>
      <div class="section-content">{{ this.disease.diseaseAttention }}</div>
      <div class="section-title">[西药治疗]:</div>
      <div class="section-content">{{ this.disease.diseaseWestward }}</div>
    </div>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）,
//例如：import 《组件名称》 from '《组件路径》,

export default {
  //import引入的组件需要注入到对象中才能使用"
  components: {},
  props: {},
  data() {
    //这里存放数据"

    return {
      disease: []
    }
  },
  //计算属性 类似于data概念",
  computed: {},
  //监控data中的数据变化",
  watch: {},
  //方法集合",
  methods: {},
  //生命周期 - 创建完成（可以访问当前this实例）",
  created() {
    this.disease = this.$route.query.drugName
    //console.log(this.disease)
  },
  //生命周期 - 挂载完成（可以访问DOM元素）",
  mounted() {
  },
  beforeCreate() {
  }, //生命周期 - 创建之前",
  beforeMount() {
  }, //生命周期 - 挂载之前",
  beforeUpdate() {
  }, //生命周期 - 更新之前",
  updated() {
  }, //生命周期 - 更新之后",
  beforeDestroy() {
  }, //生命周期 - 销毁之前",
  destroyed() {
  }, //生命周期 - 销毁完成",
  activated() {
  } //如果页面有keep-alive缓存功能，这个函数会触发",
}
</script>
<style scoped>
.title {
  background-color: #F60A0AFF;
  padding: 10px;
  color: #000000;
}

.disease-container {
  font-family: Arial, sans-serif;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f5f5f5;
}

.disease-name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

.section-title {
  font-weight: bold;
  margin-bottom: 5px;
  background-color: #9FCEF6FF;
}

.section-content {
  margin-bottom: 15px;
}
</style>
